package com.alcatel.oms.syslogms.entity;
// default package

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.alcatel.oms.core.entity.EntityObject;

/**
 * MegerTable entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "meger_table", catalog = "SyslogDB")
public class MegerTable implements EntityObject{

	// Fields

	private Long id;
	private String sessionid;
	private String username;
	private String privateip;
	private String publicip;
	private String startport;
	private String endport;
	private String starttime;
	private String endtime;
	private String nasip;

	// Constructors

	/** default constructor */
	public MegerTable() {
	}

	/** full constructor */
	public MegerTable(String sessionid, String username, String privateip,
			String publicip, String startport, String endport,
			String starttime, String endtime, String nasip) {
		this.sessionid = sessionid;
		this.username = username;
		this.privateip = privateip;
		this.publicip = publicip;
		this.startport = startport;
		this.endport = endport;
		this.starttime = starttime;
		this.endtime = endtime;
		this.nasip = nasip;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "sessionid", length = 32)
	public String getSessionid() {
		return this.sessionid;
	}

	public void setSessionid(String sessionid) {
		this.sessionid = sessionid;
	}

	@Column(name = "username", length = 32)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "privateip", length = 16)
	public String getPrivateip() {
		return this.privateip;
	}

	public void setPrivateip(String privateip) {
		this.privateip = privateip;
	}

	@Column(name = "publicip", length = 16)
	public String getPublicip() {
		return this.publicip;
	}

	public void setPublicip(String publicip) {
		this.publicip = publicip;
	}

	@Column(name = "startport", length = 8)
	public String getStartport() {
		return this.startport;
	}

	public void setStartport(String startport) {
		this.startport = startport;
	}

	@Column(name = "endport", length = 8)
	public String getEndport() {
		return this.endport;
	}

	public void setEndport(String endport) {
		this.endport = endport;
	}

	@Column(name = "starttime", length = 20)
	public String getStarttime() {
		return this.starttime;
	}

	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}

	@Column(name = "endtime", length = 20)
	public String getEndtime() {
		return this.endtime;
	}

	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}

	@Column(name = "nasip", length = 16)
	public String getNasip() {
		return this.nasip;
	}

	public void setNasip(String nasip) {
		this.nasip = nasip;
	}

}